# Contributor: Jakub Jirutka <jakub@jirutka.cz>
# Maintainer: Jakub Jirutka <jakub@jirutka.cz>
pkgname=dzonegit
pkgver=0.13
pkgrel=0
pkgdesc="Git hooks to manage a repository of DNS zones"
url="https://github.com/oskar456/dzonegit"
arch="noarch !x86" # Testsuite fails
license="MIT"
depends="bind-tools git python3"
makedepends="py3-setuptools"
checkdepends="py3-pytest py3-pytest-runner"
source="https://github.com/oskar456/dzonegit/archive/v$pkgver/$pkgname-$pkgver.tar.gz"
builddir="$srcdir/$pkgname-$pkgver"
options="!check"  # https://github.com/oskar456/dzonegit/issues/15

build() {
	python3 setup.py build
}

check() {
	python3 setup.py test
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"
}

sha512sums="7cb54411e9fb99f09523f6a80c12a646464a23723176a09cccf8903a92c515aab313a16ff3a07c5ade027f1b4918be8e8f5b099404c5b56d9b284b71747e6294  dzonegit-0.13.tar.gz"
